package com.square.service.member.provider.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.square.service.auth.consumer.aop.annotation.RequiresPermissions;
import com.square.service.auth.consumer.aop.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : 王苏
 * @since : 2021/4/23 15:03
 */
@RestController
public class UserController {

    @GetMapping("/test")
    @RequiresRoles(value = {"admin"})
    @RequiresPermissions(value = {"sys:list","user:list"})
    public R<?> test(){
        return R.ok("用户服务");
    }
}
